<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Files</title>
<link rel="stylesheet" href="../../../../../../doc/src/boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
<link rel="home" href="../../index.html" title="Chapter 1. Boost.Beast">
<link rel="up" href="../using_io.html" title="Networking">
<link rel="prev" href="buffer_types.html" title="Buffer Types">
<link rel="next" href="writing_composed_operations.html" title="Writing Composed Operations">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr>
<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../../boost.png"></td>
<td align="center"><a href="../../../../../../index.html">Home</a></td>
<td align="center"><a href="../../../../../../libs/libraries.htm">Libraries</a></td>
<td align="center"><a href="http://www.boost.org/users/people.html">People</a></td>
<td align="center"><a href="http://www.boost.org/users/faq.html">FAQ</a></td>
<td align="center"><a href="../../../../../../more/index.htm">More</a></td>
</tr></table>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="buffer_types.html"><img src="../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../using_io.html"><img src="../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="writing_composed_operations.html"><img src="../../../../../../doc/src/images/next.png" alt="Next"></a>
</div>
<div class="section">
<div class="titlepage"><div><div><h3 class="title">
<a name="beast.using_io.files"></a><a class="link" href="files.html" title="Files">Files</a>
</h3></div></div></div>
<p>
        Often when implementing network algorithms such as servers, it is necessary
        to interact with files on the system. Beast defines the <a class="link" href="../concepts/File.html" title="File"><span class="emphasis"><em>File</em></span></a>
        concept and several models to facilitate cross-platform interaction with
        the underlying filesystem:
      </p>
<div class="table">
<a name="beast.using_io.files.file_types"></a><p class="title"><b>Table 1.11. File Types</b></p>
<div class="table-contents"><table class="table" summary="File Types">
<colgroup>
<col>
<col>
</colgroup>
<thead><tr>
<th>
                <p>
                  Name
                </p>
              </th>
<th>
                <p>
                  Description
                </p>
              </th>
</tr></thead>
<tbody>
<tr>
<td>
                <p>
                  <a class="link" href="../ref/boost__beast__file.html" title="file"><code class="computeroutput"><span class="identifier">file</span></code></a>
                </p>
              </td>
<td>
                <p>
                  <code class="computeroutput"><span class="identifier">file</span></code> is a type
                  alias to one of the following implementations, depending on what
                  is available on the target platform.
                </p>
              </td>
</tr>
<tr>
<td>
                <p>
                  <a class="link" href="../ref/boost__beast__file_stdio.html" title="file_stdio"><code class="computeroutput"><span class="identifier">file_stdio</span></code></a>
                </p>
              </td>
<td>
                <p>
                  This implementation of <a class="link" href="../concepts/File.html" title="File"><span class="emphasis"><em>File</em></span></a>
                  uses the C++ standard library facilities obtained by including
                  <code class="computeroutput"><span class="special">&lt;</span><span class="identifier">cstdio</span><span class="special">&gt;</span></code>.
                </p>
              </td>
</tr>
<tr>
<td>
                <p>
                  <a class="link" href="../ref/boost__beast__file_win32.html" title="file_win32"><code class="computeroutput"><span class="identifier">file_win32</span></code></a>
                </p>
              </td>
<td>
                <p>
                  This implements a <a class="link" href="../concepts/File.html" title="File"><span class="emphasis"><em>File</em></span></a>
                  for the Win32 API. It provides low level access to the native file
                  handle when necessary.
                </p>
              </td>
</tr>
<tr>
<td>
                <p>
                  <a class="link" href="../ref/boost__beast__file_posix.html" title="file_posix"><code class="computeroutput"><span class="identifier">file_posix</span></code></a>
                </p>
              </td>
<td>
                <p>
                  For POSIX systems, this class provides a suitable implementation
                  of <a class="link" href="../concepts/File.html" title="File"><span class="emphasis"><em>File</em></span></a>
                  which wraps the native file descriptor and provides it if necessary.
                </p>
              </td>
</tr>
</tbody>
</table></div>
</div>
<br class="table-break">
</div>
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
<td align="left"></td>
<td align="right"><div class="copyright-footer">Copyright © 2016-2019 Vinnie
      Falco<p>
        Distributed under the Boost Software License, Version 1.0. (See accompanying
        file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
      </p>
</div></td>
</tr></table>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="buffer_types.html"><img src="../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../using_io.html"><img src="../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="writing_composed_operations.html"><img src="../../../../../../doc/src/images/next.png" alt="Next"></a>
</div>
</body>
</html>
